package com.core.Massa;

import com.core.Massa.MassaBase;

public class Grama extends MassaBase {
	
	public Grama(double valueToBeConverted){
		this.valueToBeConverted = valueToBeConverted;
	}
	
	@Override
	public double ToQuilograma(){
		return this.valueToBeConverted*0.001;
	}
	
	@Override
	public double ToMiligrama(){
	 return this.valueToBeConverted*10000;
	}

	@Override
	public double ToLibra(){
	 return this.valueToBeConverted*0.0027;
	}
	
	@Override
	public double ToOnca(){
	 return this.valueToBeConverted*0.0322;
	}

}

